package gov.ccswj.modules.ccbusiness.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import gov.ccswj.modules.ccbusiness.dao.CChattelMortgageInfoDao;
import gov.ccswj.modules.ccbusiness.entity.CChattelMortgageInfoEntity;
import gov.ccswj.modules.ccbusiness.service.CChattelMortgageInfoService;



@Service("cChattelMortgageInfoService")
public class CChattelMortgageInfoServiceImpl implements CChattelMortgageInfoService {
	@Autowired
	private CChattelMortgageInfoDao cChattelMortgageInfoDao;
	
	@Override
	public CChattelMortgageInfoEntity queryObject(Integer id){
		return cChattelMortgageInfoDao.queryObject(id);
	}
	
	@Override
	public List<CChattelMortgageInfoEntity> queryList(Map<String, Object> map){
		return cChattelMortgageInfoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return cChattelMortgageInfoDao.queryTotal(map);
	}
	
	@Override
	public void save(CChattelMortgageInfoEntity cChattelMortgageInfo){
		cChattelMortgageInfoDao.save(cChattelMortgageInfo);
	}
	
	@Override
	public void update(CChattelMortgageInfoEntity cChattelMortgageInfo){
		cChattelMortgageInfoDao.update(cChattelMortgageInfo);
	}
	
	@Override
	public void delete(Integer id){
		cChattelMortgageInfoDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		cChattelMortgageInfoDao.deleteBatch(ids);
	}
	@Override
	public void deleteByname(String entname) {
		cChattelMortgageInfoDao.delete(entname);
		
	}
}
